/* 漢堡選單按鈕 - 現代風格 */
.hamburger {
	position: fixed;
	top: 20px;
	left: 20px;
	width: 30px;
	height: 30px;
	cursor: pointer;
	z-index: 1000;
	display: block;
	transition: transform 0.3s ease;
}

.hamburger:hover {
	transform: scale(1.1);
}

.hamburger span,
.hamburger span::before,
.hamburger span::after {
	content: '';
	display: block;
	width: 100%;
	height: 3px;
	background: #1a1a1a;
	border-radius: 6px;
	transition: all 0.3s ease;
}

.hamburger span::before {
	top: -8px;
}

.hamburger span::after {
	bottom: -8px;
}

/* 點擊後：漢堡變叉 */
.hamburger.active span {
	background: transparent;
}

.hamburger.active span::before {
	top: 0;
	transform: rotate(45deg);
}

.hamburger.active span::after {
	bottom: 0;
	transform: rotate(-45deg);
}

/* 側邊欄 - 現代簡約風格 */
.sidebar {
	position: fixed;
	top: 0;
	left: -300px;
	width: 300px;
	height: 100%;
	background: #ffffff;
	/* box-shadow: 4px 0 20px rgba(0, 0, 0, 0.12); */
	z-index: 99999;
	transition: left 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
	padding: 20px;
	box-sizing: border-box;
	border-left: 1px solid #eee;
}

.sidebar.active {
	left: 0;
}

/* 關閉按鈕 - 更現代的 X 按鈕 */
.close-btn {
	position: absolute;
	top: 20px;
	right: 20px;
	font-size: 40px;
	color: #1a1a1a;
	text-decoration: none;
	opacity: 0.8;
	line-height: 1;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: all 0.3s ease;
}

.close-btn:hover,
.close-btn:focus {
	opacity: 1;
	background-color: #f0f0f0;
	transform: scale(1.1);
}

/* 菜單列表 */
.menu-list {
	list-style: none;
	padding: 40px 0 0 0;
	margin: 0;
}

.menu-list li {
	/* margin: 4px 0; */
	border-bottom:1px solid #f0f0f0;
}

.menu-list a {
	text-decoration: none;
	color: #2c2c2c;
	/* font-size: 3vw; */
	font-weight: 500;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	display: block;
	padding: 8px 16px;
	border-radius: 8px;
	transition: all 0.25s ease;
	letter-spacing: -0.02em;
}

.menu-list a:hover,
.menu-list a:focus {
	background-color: #f5f5f5;
	color: #000;
	transform: translateX(4px);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.menu-list a:active {
	opacity: 0.8;
}

/* 遮罩層 - 柔和半透明 */
.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
	z-index: 998;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, visibility 0.4s;
	pointer-events: none;
}

.overlay.active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* 移動端以上隱藏（平板+桌面）*/
@media (min-width: 768px) {
	.hamburger {
		display: none;
	}

	.sidebar {
		display: none;
	}
}

/* 可選：支援深色模式（國際用戶越來越重視） */
@media (prefers-color-scheme: dark) {
	.sidebar {
		background: #121212;
	}

	.menu-list a {
		color: #e0e0e0;
	}

	.menu-list a:hover {
		background-color: #2a2a2a;
		color: #fff;
	}

	.close-btn,
	.hamburger span,
	.hamburger span::before,
	.hamburger span::after {
		background: #e0e0e0;
	}

	.close-btn:hover {
		background-color: #333;
	}
}